home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Title : jzfndnxt │
- │ Purpose : find the next matching file from the disk transfer area specified│
- │ in a previous call to jzfndfst │
- │ Parms │
- │ fdta - directory record defined in jzdirect.h │
- │ │
- │ i.e. error = jzfndnxt(&dir_record); │
- │ Written by Jack Zucker - 75766,1336 301-794-5950 on 1/15/85 │ │
- └────────────────────────────────────────────────────────────────────────────┘
- */
-
- jzfndnxt(fdta)
- int fdta;
-
- {
- union REGS winreg,woutreg;
-
- winreg.x.dx = fdta; /* get address of dir record */
- winreg.h.ah = 0x1a; /* set dta function */
- intdos(&winreg,&woutreg);
-
- winreg.h.ah = 0x4f; /* find next function */
- intdos(&winreg,&woutreg);
- if (woutreg.x.cflag & 0x0001 == 1) return(woutreg.x.ax);
- else return(0); /* return 0 if no error, otherwise dos error code */
-
- }